package com.lilili.ssh.user.model;


import java.sql.Date;

import javax.persistence.*;

import com.lilili.ssh.base.BaseModel;

@Entity
@Table(name="USER")

public class User extends BaseModel{

	private static final long serialVersionUID = 1L;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 登陆名
	 */
	private String loginName;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 状态(1为可用，-1为不可用，0为系统管理员)
	 */
	private Integer statu;
	/**
	 * 注册日期
	 */
	private Date regDate;
	/**
	 * 注册日期结束（仅用于查询）
	 */
	private Date regDateEnd;
	/**
	 * 备注
	 */
	private String note;

	@Column(name = "NAME",length = 32)
	public String getName() {
		return name;
	}
	@Column(name = "PASSWORD",length = 32)
	public String getPassword() {
		return password;
	}
	@Column(name = "LOGINNAME",length = 32)
	public String getLoginName() {
		return loginName;
	}
	@Column(name = "STATU")
	public Integer getStatu() {
		return statu;
	}
	@Column(name = "REGDATE")
	public Date getRegDate() {
		return regDate;
	}
	@Transient
	public Date getRegDateEnd() {
		return regDateEnd;
	}
	@Column(name = "NOTE",length = 200)
	public String getNote() {
		return note;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	public void setStatu(Integer statu) {
		this.statu = statu;
	}
	
	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}
	
	public void setRegDateEnd(Date regDateEnd) {
		this.regDateEnd = regDateEnd;
	}
	
	public void setNote(String note) {
		this.note = note;
	}

	

}
